import Vue from "vue";
import Vuex from "vuex"
import user from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
  getters: {
    defaultAvatar: state => state.user.defaultAvatar,
    token: state => state.user.token,
    userId: state => state.user.userId,
  },
  modules: {
    user
  }
})

export default store